<template>
  <div class="empty-container">
    <div class="empty-box">
      <img :src="icon" alt="">
      <div class="empty-text">{{ text }}</div>
    </div>
  </div>
</template>

<script>
import icon from '@/assets/empty-invoice.png';
export default {
  props: {
    text: {
      type: String,
      default: '暂无数据'
    }
  },
  data() {
    return {
      icon
    };
  }
};
</script>

<style lang="scss" scoped>

.empty-container {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #EBEEFD;
  padding: 12px 0 18px 0;
  .empty-box {
    display: flex;
    align-items: center;
  }
  img {
    width: 12px;
    margin-right: 4px;
  }
  .empty-text {
    color: #999;
    font-size: 14px;
  }
}
</style>
